// src/com/example/MyClass.groovy
package com.example

class MyClass {
    String name

    MyClass(String name) {
        this.name = name
    }

    def greet() {
        echo "Hello, ${name}!"
    }
}